home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
176-200
/
183
/
mklib
/
edlib
/
hextoint.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-13
|
374b
|
19 lines
/* edlib version 1.0 of 04/08/88 */
/* this function takes a string of hex digits and returns its value */
#include <ctype.h>
int hextoint(number)
char *number;
{
int value = 0;
while ( *number )
if ( isxdigit(*number) ) {
value = ( value << 4 ) + toint(*number++);
} else {
return(value);
}
return(value);
}